package com.arpa.wms.domain.entity;

import com.arpa.ntocc.common.domain.entity.BasicEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 自定义报表字段
 * </p>
 *
 * @author wangyujie
 * @since 2020-01-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wms_diy_report_field")
@ApiModel(value="DiyReportField对象", description="自定义报表字段")
public class DiyReportField extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一code")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "组织机构编码")
    @TableField("branch_code")
    private String branchCode;

    @ApiModelProperty(value = "自定义报表code")
    @TableField("report_code")
    private String reportCode;

    @ApiModelProperty(value = "字段")
    @TableField("field")
    private String field;

    @ApiModelProperty(value = "字段展示名称")
    @TableField("field_name")
    private String fieldName;

    @ApiModelProperty(value = "字段类型: int数字,str文本,select字典值,date日期,dicimal金额")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "数据来源:diy 自定义,cal计算得出")
    @TableField("source")
    private String source;

    @ApiModelProperty(value = "排序:越大越往后")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "数据库字段")
    @TableField("db_field")
    private String dbField;

    @ApiModelProperty(value = "计算规则json")
    @TableField("cal_json")
    private String calJson;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;


}
